package com.mew.chess.core.common.message.response;

import com.zebra.common.ByteBufUtils;
import io.netty.buffer.ByteBuf;
import lombok.*;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ChipMessage {
    private long userId;
    private long betNumber ; //押注金额
    private int betType; //押注类型

    public void write(ByteBuf b){
        ByteBufUtils.writeLong(b,userId);
        ByteBufUtils.writeLong(b,betNumber);
        ByteBufUtils.writeInt(b,betType);
    }


}
